/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servinf.ani.sincronizador.service;

import com.servinf.ani.sincronizador.dao.InitiativeStateDAO;
import com.servinf.ani.sincronizador.entities.EstadoIniciativa;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Clase de servicios para el tipo de proyecto.
 * @author mortiz
 */
@Component
public class InitiativeStateService {
    
    private InitiativeStateDAO initiativeStateDAO;

    public InitiativeStateDAO getInitiativeStateDAO() {
        return initiativeStateDAO;
    }

    @Autowired
    public void setInitiativeStateDAO(InitiativeStateDAO initiativeStateDAO) {
        this.initiativeStateDAO = initiativeStateDAO;
    }
   
    /**
     * Retorna la lista de las generaciones o tipos de proyecto
     * @return 
     */
    public List<EstadoIniciativa> findALl(){
            List<EstadoIniciativa> states = getInitiativeStateDAO().findAll();
            return states;
    }
    
}
